VERSION 5.00
Begin VB.Form frmIgnore 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Ignore Parameters for %Nick"
   ClientHeight    =   3255
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4110
   Icon            =   "frmIgnore.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3255
   ScaleWidth      =   4110
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   2640
      TabIndex        =   5
      Top             =   2640
      Width           =   1215
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   375
      Left            =   1320
      TabIndex        =   6
      Top             =   2640
      Width           =   1215
   End
   Begin VB.Frame fmeNick 
      Caption         =   "%nick"
      Height          =   2295
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   3615
      Begin VB.CheckBox chkIgnore 
         Height          =   255
         Index           =   4
         Left            =   240
         TabIndex        =   4
         Top             =   1440
         Width           =   1695
      End
      Begin VB.CheckBox chkIgnore 
         Height          =   255
         Index           =   3
         Left            =   240
         TabIndex        =   3
         Top             =   1080
         Width           =   1695
      End
      Begin VB.CheckBox chkIgnore 
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   2
         Top             =   720
         Width           =   1695
      End
      Begin VB.CheckBox chkIgnore 
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   1695
      End
   End
End
Attribute VB_Name = "frmIgnore"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Sub SetupForNick(ByVal Nick As String)
Dim mask As String
Dim c As Long

mask = frmMain.GetMask(Nick)

For c = 1 To 5
  chkIgnore(c).Value = Val(GetWord(mask, c))
Next

fmeNick.Caption = Nick
Me.Caption = Replace$(Me.Caption, "%Nick", Nick)

Me.Show vbModal, frmMain

End Sub



Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdOk_Click()
' first ensure the already existing params
Dim c As Long

' if any are removed.
frmMain.DelIgnore fmeNick.Caption

' form the ignore mask
Dim mask As String
For c = 1 To 4
mask = mask + Trim(Str(chkIgnore(c).Value)) + " "
Next
mask = Left$(mask, 9)

' now add the parameters
frmMain.AddIgnore fmeNick.Caption + " " + mask

Unload Me

End Sub


Private Sub Form_Load()
cmdOK.Caption = lang.Buttons(2)
cmdCancel.Caption = lang.Buttons(3)
chkIgnore(1).Caption = lang.Messages(24)
chkIgnore(2).Caption = lang.Messages(25)
chkIgnore(3).Caption = lang.Messages(26)
chkIgnore(4).Caption = lang.Messages(27)
End Sub
